-- GENERATED SPELL FOR [Young Fleshripper] --


function spell0_199(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_199', 687, 1)
end

function spell1_199(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_199', 0, 1)
end

function spell2_199(pUnit, Event) --@Demoralizing Screech,n/a--
pUnit:FullCastSpellOnTarget(24423,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_199', 10000, 1)
end

function spell3_199(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_199', 0, 1)
end

function Sorts_199(pUnit, Event)
local choix_sorts_199 = math.random(0, 3)
if choix_sorts_199 == 0 then
pUnit:RegisterEvent('spell0_199', 1, 1)
end
if choix_sorts_199 == 1 then
pUnit:RegisterEvent('spell1_199', 1, 1)
end
if choix_sorts_199 == 2 then
pUnit:RegisterEvent('spell2_199', 1, 1)
end
if choix_sorts_199 == 3 then
pUnit:RegisterEvent('spell3_199', 1, 1)
end
end

function mob199_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_199', math.random(1500, 3000), 1)
end

function mob199_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob199_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob199_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(199, 1, 'mob199_Action')
RegisterUnitEvent(199, 2, 'mob199_Leave')
RegisterUnitEvent(199, 3, 'mob199_Kill')
RegisterUnitEvent(199, 4, 'mob199_Die')
